import axios from '@/utils/request.js'

// 获取所有文章数据，不用参数
export const getpostList = (params) => {
  return axios({
    url: '/post',
    params
  })
}

// 发布文章
export const publishPost = (data) => {
  return axios({
    method: 'post',
    url: '/post',
    data
  })
}